home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4033 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: nntp.gmd.de!borneo!richard
  2. From: richard@borneo.gmd.de (Richard Czech)
  3. Newsgroups: crl.general,comp.sys.sun.misc,comp.unix.sys5.misc,comp.lang.c,sci.math
  4. Subject: Re: Problem with C for the mathematical programm
  5. Date: 1 Feb 1996 13:46:29 GMT
  6. Organization: GMD - German National Research Center for Information Technology
  7. Sender: richard@langeoog (Richard Czech)
  8. Message-ID: <4eqg7l$cki@omega.gmd.de>
  9. References: <4epq2e$h4b@crl2.crl.com>
  10. Reply-To: Richard.Czech@gmd.de
  11. NNTP-Posting-Host: langeoog.gmd.de
  12.  
  13. In article <4epq2e$h4b@crl2.crl.com>, sorkin@crl.com (Iouri Sorkine) writes:
  14. |> 
  15. |> I execute "cc name.c" and receive "ld: Undefined symbol
  16. |>                                        _cos
  17. |>                                        _sin
  18. |> and so on...                                ". 
  19. |> What's wrong?        
  20.  
  21. You didn't read the manual page. Try "man cos" and you'll find
  22.  
  23.   SYNOPSIS
  24.      cc [ flag ... ] file ...  -lm [ library ... ]
  25.  
  26. Then you may execute "cc name.c -lm".
  27.  
  28.  
  29. ----------------------------------------------------------------------
  30.        Richard Czech                      e-mail: Richard.Czech@gmd.de
  31.      GMD-SET
  32.    Schloss Birlinghoven                   phone:    (+49) 2241 14 2039
  33. 53754 St. Augustin, Germany               fax:      (+49) 2241 14 2342
  34. ----------------------------------------------------------------------
  35.